#TITLE=dp_js
#INFO
EditPlus Cliptext Library v1.0 written by datta Puro (dp) - U-Tosolutions(I) Pvt. Ltd.
This file is provided as a sample Cliptext library of EditPlus.
#SORT=n

#T=PopUp Window
<script language="JavaScript">
<!--
function new_window(url)
{
	newwindow=window.open(url,'xyz','top=127,left=225,width=350,height=250');
	newwindow.focus();
return;
}
//-->
</script>^!
<!-- <a href="javascript://" onclick="new_window();">click here</a> -->

#T=PopUp Window-2
<script language="JavaScript">
function new_window(url,winName,features)
{
	newwindow=window.open(url,winName,features);
	newwindow.focus();
}
</script>^!
<!-- onclick="javascript:new_window('new_page.htm','about','scrollbars=yes,resizable=yes,width=600,height=450');" -->

#T=PopUp Window percent
<script language="JavaScript">
<!--
function openWindow(percent) {
    var w = 630, h = 440; // default sizes
    if (window.screen) {
        w = window.screen.availWidth * percent / 100;
        h = window.screen.availHeight * percent / 100;
    }
	newwindow=window.open('nextpage.htm','windowName','width='+w+',height='+h);
	newwindow.focus();
	return;
}
//-->
</script>^!
<!-- <a href="javascript://" onclick="openWindow(50);">click here</a> -->

#T=PopUp Window onload
<script language="JavaScript">
<!--
function popwin()
	{
	myWindow = window.open("","windowRef","width=220,height=120,screenX=150,screenY=150,top=0,left=0,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	myWindow.location.href = "filename.html";
	if (!myWindow.opener) myWindow.opener = self;

	return;
	}
// -->
</script>^!
<!-- <body onLoad="popwin();return false"> -->

#T=Auto Colse popup
<script language="JavaScript">
<!-- Begin
var TimeOut = 30;    // Initial time to Close window after __ number of seconds?
var TimeRemain = 0;  // Remaining time to Close window after __ number of seconds?
var RefreshRate = 2; // Check to close window every __ number of seconds?
var ChildWin = null;
function TimedPopup(url)
{
 windowprops = "left=250,top=250,width=200,height=200"; // May be adjusted according to your needs
 if (ChildWin)
     return false;
 ChildWin = window.open(url, "ChildWin", windowprops);
 ResetTimer();
 if (TimeOut && RefreshRate)
    setTimeout("CheckClose();",RefreshRate * 1000);
}
function ResetTimer()
{
 TimeRemain = TimeOut;
 document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
}
function CheckClose()
{
 TimeRemain -= (RefreshRate);
 if (TimeRemain > 0)
    {
    if (ChildWin && ChildWin.closed)
       {
	document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
	ChildWin = null;
       }
    else
    if (ChildWin)
       {
        document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
	setTimeout("CheckClose();",RefreshRate * 1000);
       }
    }
 else
 if (ChildWin)
    {
     document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
     if (ChildWin.closed)
	 ChildWin = null;
     else
	{
         ChildWin.close();
	 ChildWin = null;
        }
    }
}
//  End -->
</script>
<!-- 
<body onUnload="if (ChildWin){ChildWin.close()};">
<form name="form1" method="post" action="">
  <input type="button" name="Submit" value="Show Popup" onClick="TimedPopup('autoclose-inactive-popup2.htm');">
  <br><br>
  Time Remaining: <input type="text" name="field1" value="30" size="4">^!
</form> 
-->
#T=Boinger popup
<script language="JavaScript">
<!-- Begin

// If you want the popup window to maintain focus, add this
// onblur event to the body tag or the popup page:
// <body onblur="self.focus()">

// Set the variables, as indicated below:

// Set dimensions and positions for the two window states.

var SmallSizeWidth  = 200;
var SmallSizeHeight = 200;
var SmallSizeX      = 100;
var SmallSizeY      = 100;

var LargeSizeWidth  = 400;
var LargeSizeHeight = 200;
var LargeSizeX      = 100;
var LargeSizeY      = 100;

// Set to Small or Large for the starting state.

var whichSize       = "Small";

// Set the speed for the changes (milliseconds).

var speed           = 1500;

// Do not edit below this line.
// ============================
var bV = parseInt(navigator.appVersion)
var t = null;
function GrowShrink(){ 
if (bV >= 4){
if (whichSize == "Small"){
self.resizeTo(LargeSizeWidth,LargeSizeHeight);
self.moveTo(LargeSizeX,LargeSizeY);
whichSize = "Large";
}else{
self.resizeTo(SmallSizeWidth,SmallSizeHeight);
self.moveTo(SmallSizeX,SmallSizeY);
whichSize = "Small";      
}
t=setTimeout('GrowShrink()', speed);
}}
GrowShrink();
//  End -->
</script>^!
#T=New page open-onclick
<script language="JavaScript">
<!--
	function abcd(Obj)
	{
		if(Obj.value==1)
		{
			document.formname.action="your_page1.htm"; 
		}
		else if(Obj.value==2)
		{
			document.formname.action="your_page2.htm"; 
		}
		document.formname.submit();
	return;
	}
//-->
</script>
<!-- 
	<select name="listboxname">
		<option value="0">select^!</option>
		<option value="1">list1</option>
		<option value="2">list2</option>
	</select>
-->
<!-- <input type="button" value="OK" onclick="abcd(document.formname.listboxname)"> -->

#T=New page open-onchange
<script language="JavaScript">
<!--
function new_window(url)
{
	newwindow=window.open(url,'xczzxc','top=100,left=250,width=420,height=470');
	return;
}
function openNewPage ( optionSelected )
{
	if ( optionSelected ==1)
		new_window('one.htm');
	else if ( optionSelected ==2)
		new_window('two.htm');
	return;
}
//-->
</script>
<!-- 
	<select name="selectname" onChange='javascript:openNewPage(this.options[this.selectedIndex].value)'>
		<option value="0">Select</option>
		<option value="1">One</option>
		<option value="2">Two^!</option>
	</select>
-->
#T=selectbox disable
<script language="JavaScript">
<!--
function disable(disableIt)
{
	document.formaction.practice.disabled = disableIt;
}
//-->
</script>
<!-- 
<body onload=" disable(this);">
<form method="get" action="" name="formaction" enctype="multipart/form-data">
	<select class="select" name="practice">
		<option value="0" selected>Please Select</option>
		<option >list-1</option>
		<option >list-2</option>
	</select>
</form>
</body>
	OR
<input type="checkbox" onclick="disable(this.checked)"> 
 -->

#T=New page open-iframe
<script language="JavaScript">
<!--
function showme()
	{
	document.frames["iframename"].location.href="add_newpage.htm"
	return
	}	
//-->
</script>^!
<!-- <input type=button class="button" value="Add" alt="Add" style="cursor:hand;" onclick="showme();"> -->
<!-- <iframe frameborder="0" scrolling="auto" id="iframename"  height="122" width="100%" src="add_page.htm" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> </iframe> -->

#T=textbox value change
<script language="JavaScript">
<!--
function newcontact(obj)
{
	 var frm=document.forms[0]
	 //alert(obj);
	 if (obj==3) 
	 {
			document.getElementById('newdiv').style.display ="block";
	}
	 else
	 {
			document.getElementById('newdiv').style.display ="none";
	 }
	 if (obj==1)
	 {
		frm.fname.value="Sumit";
		frm.lname.value="Suri";
	 }
	 if (obj==2)
	 {
		frm.fname.value="Datta";
		frm.lname.value="Puro";
	 }
}
//-->
</script>
<!-- 
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" valign="top">
	<tr>
		<td class="normal" >Caller Name:</td>
		<td class="normal" >
			<select name="caller_name" class="select" onchange="javascript:newcontact(this.options[this.selectedIndex].value);">
				<option value="0">Please Select</option>
				<option value="1" selected>Sumit Suri</option>
				<option value="2">Datta puro</option>
				<option value="3">New Contact</option>
			</select>&nbsp;&nbsp;
			<div id="newdiv" style="display:none;"><input type="text" class="text" name="contact" value="" size="15" maxlength="35"></div>
		</td>
	</tr>
	<tr>
		<td class="normal" >First Name:</td>
		<td class="normal" ><input type="text" class=text name="fname" value="David"></td>
	</tr>
	<tr>
		<td class="normal" >Last Name:</td>
		<td class="normal" ><input type="text" class=text name="lname" value="D."></td>
	</tr>
</table>
-->

#T=Onchange Index value
<script language="JavaScript">
<!--
function showme8(no)
{
	if (no >=1 && no <= 3)
	{
	    	document.formname.listname2.selectedIndex=0;
		document.formname.listname3.selectedIndex=0;
	}
	if (no >=4 && no <= 7)
	{
	    	document.formname.listname1.selectedIndex=0;
	    	document.formname.listname3.selectedIndex=0;
	}
	if (no >=8 && no <= 10)
	{
	    	document.formname.listname1.selectedIndex=0;
		document.formname.listname2.selectedIndex=0;
	}
}
//-->
</script>
<!-- 
<form method="post" name="formname">
<select name="listname1" class="select" onchange="showme(this.options[this.selectedIndex].value);">
	<option value="0">Please Select</option>
	<option value="1">List Item-1</option>
	<option value="2">List Item-2</option>
	<option value="3">List Item-3</option>
</select><br>
<select name="listname2" class="select" onchange="showme(this.options[this.selectedIndex].value);">
	<option value="0">Please Select</option>
	<option value="4">List Item-4</option>
	<option value="5">List Item-5</option>
	<option value="6">List Item-6</option>
	<option value="7">List Item-7</option>
</select><br>
<select name="listname3" class="select" onchange="showme(this.options[this.selectedIndex].value);">
	<option value="0">Please Select</option>
	<option value="8">List Item-8</option>
	<option value="9">List Item-9</option>
	<option value="10">List Item-10</option>
</select>
</form
-->

#T=Accept terms1
<script>
var checkobj
function agreesubmit(el)
{
	checkobj=el
	if (document.all||document.getElementById)
	{
	for (i=0;i<checkobj.form.length;i++)
		{  //hunt down submit button
			var tempobj=checkobj.form.elements[i]
			if(tempobj.type.toLowerCase()=="submit")
			tempobj.disabled=!checkobj.checked
		}
	}
}
function defaultagree(el)
{
	if (!document.all&&!document.getElementById)
	{
		if (window.checkobj&&checkobj.checked)
		return true
		else
		{
			alert("Please read/accept terms to submit form")
			return false
		}
	}
}
</script>
<!-- 
	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	<form name="agreeform" action="page.htm" onSubmit="return defaultagree(this)">
	<input name="agreecheck" type="checkbox" onClick="agreesubmit(this)"><b>I agree to the above terms</b><br>
	<input type="Submit" value="Submit!" disabled>^!
	</form>

	<script>
	//change two names below to your form's names
	document.forms.agreeform.agreecheck.checked=false
	</script>

	</body>
 -->

#T=Disable Rightclick
<script language="JavaScript1.2">
if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3)alert('Right mouse button has been disabled')")
</script>

#T=Accept terms2
<script language="JavaScript">
<!-- Begin
function checkCheckBox(f)
{
	if (f.agree.checked == false )
	{
		alert('Please check the box to continue.');
		return false;
	}
	else
	return true;
}
//  End -->
</script>
<!-- 
<form action="/yourscript.cgi-or-your-page.html" method="POST" onsubmit="return checkCheckBox(this)">
I accept: <input type="checkbox" value="0" name="agree">
<input type="submit" value="Continue Order">
<input type="button" value="Exit" onclick="document.location.href='/index.html';">
</form>
 -->

#T=Add Favorite
<script language="JavaScript">
<!-- Begin
function addbookmark()
{
	bookmarkurl="http://www.u-tosolutions.com/"
	bookmarktitle="Welcome To u-tosolutions"
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//  End -->
</script>
<!-- <a href="javascript:addbookmark()"><b>Bookmark This Page</a> -->

#T=Add A Row
<script language="JavaScript">
  function addRow(id)
  {
    var tbody = document.getElementById
	(id).getElementsByTagName("TBODY")[0];
    var row = document.createElement("TR")
    var td1 = document.createElement("TD")
    td1.appendChild(document.createTextNode("column 1"))
    var td2 = document.createElement("TD")
    td2.appendChild (document.createTextNode("column 2"))

    row.appendChild(td1);
    row.appendChild(td2);

    tbody.appendChild(row);
  }
</script>
<!-- 
<a href="javascript:addRow('myTable')">Add row</a>
<table id="myTable" cellspacing="0" border="1">
  <tbody>
    <tr>
	<td>row1_column1^!</td>
	<td>row1_column2</td>
    </tr>
  </tbody>
</table> 
-->


#T=Checkbox Alternetive
<script language="JavaScript">
<!--
function toggleIt(elm,name1,name2)
{
	if (elm.name == name1)
	{
		if (elm.checked) elm.form[name2].checked = false;
		else elm.form[name2].checked = true;
	}
	else if (elm.name == name2)
	{
		if (elm.checked) elm.form[name1].checked = false;
		else elm.form[name2].checked = true;
	}
}
//-->
</script>
<!-- 
<form method="post" action="" name="main">
toggle 1 <input type="checkbox" name="on" onClick="toggleIt(this,'on','off')" checked>
toggle 2 <input type="checkbox" name="off" onClick="toggleIt(this,'off','on')">^!
</form> 
-->

#T=Checkbox checkall
<script language="JavaScript">
<!-- Begin
function checkAll()
{
for (var j = 1; j <= 5; j++)
	{
		box = eval("document.checkboxform.C" + j); 
		if (box.checked == false) box.checked = true;
	}
}

function uncheckAll()
{
for (var j = 1; j <= 5; j++)
	{
		box = eval("document.checkboxform.C" + j); 
		if (box.checked == true) box.checked = false;
	}
}

//  End -->
</script>
<!-- 
<form name=checkboxform>
<input type=checkbox name=C1 checked>C1<br>
<input type=checkbox name=C2 checked>C2<br>
<input type=checkbox name=C3 checked>C3<br>
<input type=checkbox name=C4 checked>C4<br>
<input type=checkbox name=C5 checked>C5<br>
<br>
<input type=button value="Check All" onClick="checkAll()"><br>
<input type=button value="Uncheck All" onClick="uncheckAll()">^!<br>
</form>
 -->

#T=Checkbox select
<script language="JavaScript">
<!-- Begin
  function selectivecheck(field, myselection)
    {
      var fieldid;
      var pos;
      var criteria;
      var strng;
      strng = myselection.value;
      for (i=0; i<field.length; i++)
        {
          if (strng=="all")
            {
            field[i].checked = true;
            }
          else
            {
              fieldid = field[i].id;
              pos = strng.substring(0,1);
              criteria = strng.substring(1,2);  //this gets the information we want to evaluate
              if (fieldid.substring(pos,pos+1)==criteria)
                {
                  field[i].checked = true;
                }
              else
                {
                  field[i].checked = false; //you could leave this out if you don't want to clear the check boxes
                }
            }
        }
    }
//  End -->
</script>
<!--   
<input id=a1 type=checkbox name=list value="1">Group A SubGroup 1<br>
<input id=a2 type=checkbox name=list value="2">Group A SubGroup 2<br>
<input id=b1 type=checkbox name=list value="3">Group B SubGroup 1<br>
<input id=b2 type=checkbox name=list value="4">Group B SubGroup 2<br>
<input id=c1 type=checkbox name=list value="5">Group C SubGroup 1<br>
<input id=c2 type=checkbox name=list value="6">Group C SubGroup 2<br>

  Group Selection:
<select size="1" name="mycombobox" onchange=" selectivecheck(this.form.list, this.form.mycombobox)">
	<option value="all">All Groups</option>
	<option value="0a ">Group A</option>
	<option value="0b ">Group B</option>
	<option value="0c ">Group C</option>
	<option value="11 ">SubGroup 1</option>
	<option value="12 ">SubGroup 2^!</option>
</select>
 -->

#T=Checkbox Counter
<script language="JavaScript">
<!-- Begin
function anyCheck(form)
{
		var total = 0;
		var max = form.ckbox.length;
		for (var idx = 0; idx < max; idx++) 
	{
	if (eval("document.playlist.ckbox[" + idx + "].checked") == true)
		{
		total += 1;
	   }
	}
	alert("You selected " + total + " boxes.");												
}
//  End -->
</script>
<!--
<form method="post" name=playlist>
1<input type=checkbox name=ckbox>
<br>2<input type=checkbox name=ckbox>
<br>3<input type=checkbox name=ckbox>
<br>4<input type=checkbox name=ckbox>
<br>5<input type=checkbox name=ckbox>
<p><input type=button value="Count Checkboxes" onClick="anyCheck(this.form)">
</form>
-->
#T=Checkbox Lock
<!--
<form name=exf1>
<input type="checkbox" name="c1" value="check me 1" onclick=doIt(1)>1<br>
<input type=hidden name=h1 value=0>
<input type="checkbox" name="c2" value="check me 2" onclick=doIt(2)>2<br>
<input type=hidden name=h2 value=0>
<input type="checkbox" name="c3" value="check me 3" onclick=doIt(3)>3<br>
<input type=hidden name=h3 value=0>
</form>
 -->
 <script>
var U=0;L=1; // (U)nlocked & (L)ocked
function doIt(_v)
{
  if(eval("document.exf1.c"+_v+".checked"))
  {
    if(_v==1){unlock(2);unlock(3);}
    if(_v==2){lock(3);}
    if(_v==3){lock(2);}
  }
  else
  {
    if(_v==1){whipe(2);whipe(3);unlock(2);unlock(3);}
	if(_v==2){unlock(3);}
	if(_v==3){unlock(2);}
  }
}
function lock(_v)
{
  eval("document.exf1.c"+_v+".disabled=true"); // IE thing
  eval("document.exf1.h"+_v+".value=L");
}
function unlock(_v)
{
  eval("document.exf1.c"+_v+".disabled=false"); // IE thing
  eval("document.exf1.h"+_v+".value=U");
}
function whipe(_v)
{
  eval("document.exf1.c"+_v+".checked=false");
}
</script>^!

#T=Limit checkbox
<script>
var MAX_ALLOWED=2;
var clickedData=new Array(false,false,false,false);
function itemsClicked(){var i=0;for(var j=0;j<clickedData.length;j++)i+=clickedData[j]?1:0;return(i);}
function itemClicked(_v)
{
  var ALLOW_THIS=true;
  var x=itemsClicked();
  if (x>=MAX_ALLOWED && !clickedData[_v])
  {
    ALLOW_THIS=false;
  }
  else
  {
    clickedData[_v]=clickedData[_v]?false:true;
	eval("document.exf1.r"+_v+".clicked=false;");
  }
  document.showit.s1.value=x; /* comment out */
  return (ALLOW_THIS); /* kill the event handler */
}
</script>
<!-- 
<form name=exf1>
<input name=r1 type=checkbox value=Charity_profile onclick="return itemClicked(1)">Item 1<br>
<input name=r2 type=checkbox value=lost_found onclick="return itemClicked(2)">Item 2<br>
<input name=r3 type=checkbox value=fun_section onclick="return itemClicked(3)">Item 3<br>
<input name=r4 type=checkbox value=contacts onclick="return itemClicked(4)">Item 4<br>
</form>

<form name=showit>
<input type=text name=s1 value=0>^!
</form>
-->


#T=Disable Backspace/Refresh
<script language="JavaScript">
<!--
function cancelRefresh() {
  // keycode for F5 function
  if (window.event && window.event.keyCode == 116) {
    window.event.keyCode = 8;
  }
  // keycode for backspace
  if (window.event && window.event.keyCode == 8) {
    // try to cancel the backspace
    window.event.cancelBubble = true;
    window.event.returnValue = false;
    return false;
  }
}
//-->
</script>^!

#T=BlinkText
<script language="JavaScript" type="text/javascript">
function BlinkTxt() {
    if(document.getElementById && document.all){
        obj = document.getElementsByTagName("blink");
        for (var i=0; i<obj.length; i++)
        if (obj[i].style.visibility=="hidden") {
        obj[i].style.visibility="visible";
    }
    else {
        obj[i].style.visibility="hidden";
    }
    setTimeout('BlinkTxt()',750);
    }
}
onload=BlinkTxt;
</script>
<!-- 
<blink><b>your text here !!!^!</b></blink>
 -->

#T=Onchange Image
<script language="JavaScript">
	flag=new Image();
	flag.src="images/flag_india.gif";

   function img_act(imgName)
   {
		if (imgName !="--Select--" )
		{
			flag_image= new Image();
			flag_image="images/flag_"+imgName+".gif";
			document ["flag"].src = flag_image;
		}
   }
</script>
<!-- 
<img src="images/flag_afghanistan.gif"  border=0 alt="" name="flag">
<form method=post action="">
	<select name="flag_code" onChange='javascript:img_act(this.options[this.selectedIndex].text)'>
		<option value="">--Select--</option>
		<option value="1">india</option>
		<option value="2">china</option>
		<option value="3">japan^!</option>
	</select>
</form>
 -->

#T=Multiple Listbox 
<script language='javascript'>
<!--
function move(fbox, tbox) 
	{
		var arrFbox = new Array();
		var arrTbox = new Array();
		var arrLookup = new Array();
		var i;
		for (i = 0; i < tbox.options.length; i++)
	{
		arrLookup[tbox.options[i].text] = tbox.options[i].value;
		arrTbox[i] = tbox.options[i].text;
	}
		var fLength = 0;
		var tLength = arrTbox.length;
		for(i = 0; i < fbox.options.length; i++) 
	{
		arrLookup[fbox.options[i].text] = fbox.options[i].value;
		if (fbox.options[i].selected && fbox.options[i].value != "")
	{
		arrTbox[tLength] = fbox.options[i].text;
		tLength++;
	}
else 
	{
	arrFbox[fLength] = fbox.options[i].text;
	fLength++;
   }
}
	arrFbox.sort();
	arrTbox.sort();
	fbox.length = 0;
	tbox.length = 0;
	var c;
	for(c = 0; c < arrFbox.length; c++)
{
	var no = new Option();
	no.value = arrLookup[arrFbox[c]];
	no.text = arrFbox[c];
	fbox[c] = no;
}
for(c = 0; c < arrTbox.length; c++)
{
var no = new Option();
no.value = arrLookup[arrTbox[c]];
no.text = arrTbox[c];
tbox[c] = no;
   }
}
//-->
</script>

<!-- 
<form method='post' action='' name='main'>
<table width="50%" border="0"  cellpadding="2" cellspacing="5" valign="top">
	<tr>
		<td width="35%" >
			<select class="select" name="list1" multiple size=4 style="width:80; cursor:hand;" ondblclick="move(this.form.list1,this.form.list2);">
				<option value="1">Sumit Suri</option>
				<option value="2">datta Puro</option>
			</select>
		</td>
		<td width="10%" >
			<input type="button" onClick="move(this.form.list1,this.form.list2)" class="button" value=">>" style="cursor:hand;"><br><br>
			<input type="button" onClick="move(this.form.list2,this.form.list1)" class="button" value="<<" style="cursor:hand;"></td>
		<td width="65%">
			<select multiple size="4" class="select" name="list2" style="width:80;  cursor:hand;" ondblclick="move(this.form.list2,this.form.list1);">
		</select>
		</td>
	</tr>
</table>
</form>

 -->

#T=Current Time
<script language="JavaScript">
<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock ()
{
	if(timerRunning)
	clearTimeout(timerID);
	timerRunning = false;
}
function showtime ()
{
	var now = new Date();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds()
	var timeValue = "" + ((hours >12) ? hours -12 :hours)
	if (timeValue == "0") timeValue = 12;
	timeValue += ((minutes < 10) ? ":0" : ":") + minutes
	timeValue += ((seconds < 10) ? ":0" : ":") + seconds
	timeValue += (hours >= 12) ? " P.M." : " A.M."
	document.clock.face.value = timeValue;
	timerID = setTimeout("showtime()",1000);
	timerRunning = true;
}
function startclock()
{
	stopclock();
	showtime();
}
// End -->
</script>
<!-- 
<body onload="startclock()">
<center>
<form name="clock">
<input type="text" name="face" size=13 value="">
</form>^!
-->

#T=short, current date/time
<script language="javascript">
<!--
document.write("<P ALIGN=right><I>"+
Date()+"<\/I><\/P>")
//-->
</script>^!

#T=Current Date & Time
<script>
	document.write(Date()+".")
</script>^!

#T=Countdown
<script language="JavaScript">
<!-- Begin
var g_iCount = new Number();

// CHANGE THE COUNTDOWN NUMBER HERE - ADD ONE TO IT //
var g_iCount = 11;

function startCountdown()
{
       if((g_iCount - 1) >= 0)
       {
               g_iCount = g_iCount - 1;
               numberCountdown.innerText = '00:00.0' + g_iCount;
               setTimeout('startCountdown()',1000);
       }
}
//  End -->
</script>
<!-- 
<body onLoad="startCountdown()">
<div align="center" id="numberCountdown">^!</div>
 -->
#T=Countup
<script language="JavaScript">
<!-- Begin
<!--
var g_iCount = new Number();

// CHANGE THE COUNTDOWN NUMBER HERE - ADD ONE TO IT //
var g_iCount = 0;

function startCountdown()
{
       if((g_iCount + 1) >= 0)
       {
               g_iCount = g_iCount + 1;
               numberCountdown.innerText = ' ' + g_iCount;
               setTimeout('startCountdown()',1000);
       }
}
//  End -->
</script>
<!-- 
<body onLoad="startCountdown()">
<div align="center" id="numberCountdown">^!</div>
 -->

#T=Cyper link
<script>
function cyperlink() 
{
	for (i=0;i<=260;i+=5) 
	{
		window.moveTo(i,i);
		window.resizeTo(800-2*i,600-2*i);
	}
	location.href='cyperlink2.htm';
}
</script>
<!-- <a href="cyperlink2.htm" onclick="cyperlink();">Click Here^!</a>  -->

#T=Daily Tip
<script languaGE="JavaScript">
<!-- Begin
var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();
msg[1] = "Tip 1";
msg[2] = "Tip 2";
msg[3] = "Tip 3";
msg[4] = "Tip 4";
msg[5] = "Tip 5";
msg[6] = "Tip 6";
msg[7] = "Tip 7";
msg[8] = "Tip 8";
msg[9] = "Tip 9";
msg[10] = "Tip 10";
msg[11] = "Tip 11";
msg[12] = "Tip 12";
msg[13] = "Tip 13";
msg[14] = "Tip 14";
msg[15] = "Tip 15";
msg[16] = "Tip 16";
msg[17] = "Tip 17";
msg[18] = "Tip 18";
msg[19] = "Tip 19";
msg[20] = "Tip 20";
msg[21] = "Tip 21";
msg[22] = "Tip 22";
msg[23] = "Tip 23";
msg[24] = "<br>E<img src='images/picture3.jpg'>";
msg[25] = "Tip 25";
msg[26] = "Tip 26";
msg[27] = "Tip 27";
msg[28] = "Tip 28";
msg[29] = "Tip 29";
msg[30] = "Tip 30";
msg[31] = "Tip 31";

function writeTip() 
	{ 
		document.write(msg[today]);
	}
//  End -->
</script>
<!-- 
<b>Daily Tip:^!</b>  
<script>
writeTip();
</script>
-->

#T=Expanding Textbox
<script language="JavaScript">
<!-- Begin
function call_me(max_length)
{
	if((document.form1.mybox.value == null ) || (document.form1.mybox.value == "" )) document.form1.mybox.size = size;
	if((document.form1.mybox.value.length >= size)&&(document.form1.mybox.value.length <= max_length)) document.form1.mybox.size = document.form1.mybox.value.length + 1;
	else document.form1.mybox.size = size;
}
//  End -->
</script>
<!-- <form name="form1">
LastName: ^!<input type="text" style="font-family: Terminal" name="mybox" maxlength="30" size="10" onFocus="setInterval('call_me(document.form1.mybox.maxLength)', 1)">
<!--/style needs to be a font that has a fixed size attribute like TERMINAL/-->
</form> -->
<script language="JavaScript">
<!-- Begin
var size = document.form1.mybox.size; //Global Variable keeps original size
//  End -->
</script>

#T=Alert Box
<!-- 
<input type="button" value="Open Alert Box" onClick='alert("Place Your message here... \n Click OK to contine.")'>
<a href='javascript:onClick=alert("Place Your message here... \n Click OK to contine.")'>Open Alert Box</a>
-->^!

#T=Onunload massage
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onunload="alert ('Thanks for visiting Booking form')">
^!

#T=Onclick Backgrond color
<script language="JavaScript">
var color_over="#FFF3DE"
var color_out="transparent"
function rowBgchange(obj)
{
		if(obj.form.chk_code.checked==true && obj.value==1 )
			{
				obj.document.frmName.amount.disabled=false;
				document.getElementById("row1").style.backgroundColor=color_over
			}
		else if(obj.form.chk_code.checked==false && obj.value==1 )
			{
				obj.document.frmName.amount.disabled=true;
				document.getElementById("row1").style.backgroundColor=color_out
			}
}
</script>
^!
<!--
<form method=post action="" name="frmName">
<table width='100%' border='0' cellpadding='0' cellspacing='0' align='center' valign='top'>
	<tr id=row1 name=row1>
		<td><input type="checkbox" name="chk_code" value="1" style="cursor:hand" onclick="rowBgchange(this);" checked></td>
		<td><input type="text"  value="143.56" size="10" class="text" name='amount'></td>
	</tr>
</table>
</form>
 -->
#